//
//  AFSoundRecord.h
//  AFSoundManager-Demo
//
//  Created by Alvaro Franco on 10/02/15.
//  Copyright (c) 2015 AlvaroFranco. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface AFSoundRecord : NSObject

@property(nonatomic, readonly) NSString *filePath;

@property(nonatomic, copy) void (^progress)(NSTimeInterval progress);

@property(nonatomic, copy) void (^recordComplete) (BOOL flag);

- (instancetype)initWithFilePath:(NSString *)filePath;

- (float)currentTime;

- (void)startRecording;

- (void)stopRecording;

- (void)saveRecording;

- (void)cancelCurrentRecording;

- (void)startRecording:(NSTimeInterval)duration;

- (void)saveRecordingComplete:(void (^)(BOOL flag))complete;



@end
